/* ====================== 基础样式 ====================== */
* {
	margin:0;
	padding:0;
	list-style-type:none;
	text-decoration: none;
}
/*隐藏滚动条*/
::-webkit-scrollbar {
    display: none; /* 对于WebKit浏览器（如Chrome、Safari） */
}

/* ====================== 布局结构 ====================== */
/* 导航栏 */
.layui-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 60px;
}
.layui-nav {
    justify-content: flex-start;
    min-width: max-content;
    background-color: #20b2aa;
}
/* 主内容区域 */
.main-content {
	margin-top: 60px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* 允许内容垂直滚动 */
    height: calc(100vh - 60px);
}

/* 页脚 */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #393D49;
    color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
}

/* ====================== 个人信息区域 ====================== */
/* 顶部信息栏 */
.top-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 个人信息卡片 */
.profile-card {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 25px;
}

.profile-left {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.avatar-section {
	text-align: center;
}

.avatar-wrapper {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	margin-bottom: 10px;
	border: 3px solid #e6e6e6;
}

.avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.change-avatar-btn {
	margin-top: 8px;
}

.profile-info {
	flex: 1;
	padding: 20px;
	margin-top: 5px;
}

.info-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.user-name {
	font-size: 24px;
	font-weight: 500;
	color: #333;
}

.gender-tag {
	font-size: 14px;
	color: #06ffd5e5;
	margin-left: 8px;
	font-weight: normal;
}

.info-details {
	color: #666;
}

.info-item {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-item .layui-icon {
	color: #999;
}

/* ====================== 响应式布局 ====================== */
@media screen and (max-width: 768px) {
	.personal-content {
		padding: 10px;
	}

	.profile-card {
		flex-direction: column;
		gap: 20px;
	}

	.profile-left {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.info-header {
		flex-direction: column;
		gap: 10px;
	}
	
	.profile-info {
		width: 100%;
	}

	.field-group input {
		width: 100%;
	}
}

/* 添加新的表格样式 */
.layui-tab-content {
	padding: 20px;
	background: #fff;
	border: 1px solid #e6e6e6;
}

.layui-tab {
	margin: 20px 0;
}

.vip-icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

/* 顶部信息栏样式 */
.top-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notification-box {
    position: relative;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF5722;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.total-expense .amount {
    color: #FF5722;
    font-size: 18px;
    font-weight: bold;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* 个人信息卡片样式更新 */
.profile-section {
    margin-bottom: 20px;
}

.profile-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 孩子信息卡片样式 */
.children-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.child-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.child-basic-info {
    margin-bottom: 20px;
}

.course-progress {
    margin-bottom: 20px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status.in-progress {
    background: #009688;
    color: #fff;
}

.status.unused {
    background: #FFB800;
    color: #fff;
}

.status.completed {
    background: #FF5722;
    color: #fff;
}

/* 本周课程安排样式优化 */
.weekly-schedule {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.weekly-schedule h4 {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-block;
}

.add-schedule-btn {
    float: right;
    background-color: #20b2aa;
    border: none;
    padding: 0 15px;
    height: 32px;
    line-height: 32px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.add-schedule-btn:hover {
    background-color: #1a9690;
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.3);
}

.schedule-list {
    margin-top: 15px;
    clear: both;
}
.schedule-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #f0f9f9;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.schedule-item .day {
    width: 60px;
    color: #666;
    font-weight: 500;
}

.schedule-item .time {
    width: 120px;
    color: #666;
}

.schedule-item .course {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.schedule-item .coach {
    width: 80px;
    color: #20b2aa;
    text-align: right;
}

/* 空课程提示样式 */
.schedule-list:empty::after {
    content: '暂无课程安排';
    display: block;
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 14px;
}

/* 添加删除按钮 */
.schedule-item .delete-btn {
    visibility: hidden;
    opacity: 0;
    margin-left: 10px;
    color: #ff5722;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-item:hover .delete-btn {
    visibility: visible;
    opacity: 1;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .schedule-item .day,
    .schedule-item .time,
    .schedule-item .course,
    .schedule-item .coach {
        width: 100%;
        text-align: left;
    }
    
    .add-schedule-btn {
        float: none;
        margin-top: 10px;
        width: 100%;
    }
}

/* 添加孩子切换按钮样式 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.child-switcher {
    display: flex;
    gap: 10px;
}

.child-switch-btn {
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 20px;
}

.child-switch-btn.active {
    background-color: #20b2aa;
    color: #fff;
}

/* 孩子卡片显示控制 */
.child-card {
    display: none;
}

.child-card.active {
    display: block;
}

/* 修改下拉框样式 */
.child-switcher .layui-select {
    width: 120px;
    height: 32px;
    border-radius: 4px;
}

/* 课程安排标题区域样式 */
.weekly-schedule h4 {
    display: inline-block;
    margin-right: 15px;
}

.add-schedule-btn {
    margin-bottom: 15px;
}

/* 进度条样式 */
.layui-progress {
    margin: 10px 0;
}

.basic-info {
    margin-left: 5px;
}

.basic-info h2 {
    margin-bottom: 5px;
}

.basic-info p {
    margin-bottom: 5px;
    line-height: 1.6;
}

.basic-info p:last-child {
    margin-bottom: 0;
}
.vip-info {
	color: #ffd000;
	position: relative;
	top: 5px;
	right:5px;
	/* border: 1px solid #ffd000; */
}

/* 添加新的上传按钮样式 */
#uploadAvatar {
    font-size: 12px;
    padding: 0 10px;
    height: 28px;
    line-height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#uploadAvatar:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 课程表格样式重新设计 */
.layui-table {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

/* 表头样式 */
.layui-table thead tr {
    background: linear-gradient(135deg, #20b2aa, #1a9690);
}

.layui-table th {
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
    padding: 16px 10px;
    border: none;
}

.layui-table th span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* 单元格基础样式 */
.layui-table td {
    padding: 16px 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* 时间列样式 */
.layui-table td:first-child {
    background: #fafafa;
    font-weight: 500;
    color: #333;
    width: 120px;
    text-align: center;
    border-right: 2px solid #f0f0f0;
}

/* 课程单元格样式 */
.course-cell {
    min-height: 80px;
    padding: 12px;
    border-radius: 6px;
    margin: 4px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}

.course-cell:hover {
    background: #f8ffff;
}

.course-cell.selected {
    background: #e6f7ff;
    border: 2px solid #20b2aa;
    box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.2);
}

/* 课程内容样式 */
.course-cell .course-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.course-cell .coach-name {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-cell .coach-name i {
    font-size: 14px;
    color: #20b2aa;
}

/* 空课程单元格样式 */
.course-cell.empty {
    background: #fafafa;
    border: 1px dashed #ddd;
    color: #999;
    font-size: 13px;
}

.course-cell.empty:hover {
    background: #f5f5f5;
    border-color: #20b2aa;
}

/* 上午/下午分隔行样式 */
.layui-table tr.time-divider td {
    padding: 8px;
    background: #f5f5f5;
    text-align: center;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid #eee;
    border-top: 2px solid #eee;
}

/* 移除右键菜单相关样式 */
.layui-layer-rightmenu,
.right-menu,
.menu-item {
    display: none;
}

/* 添加成功提示样式 */
.layui-layer-msg {
    border-radius: 4px !important;
}

/* 添加课程弹窗样式 */
.course-selection-dialog {
    padding: 20px !important;
    background: #f8f8f8 !important;
}

/* 课程选择表格样式 */
.course-selection-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
/* 表头样式 */
.course-selection-table th {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-align: center;
}

/* 单元格样式 */
.course-selection-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

/* 时间列样式 */
.course-selection-table td:first-child {
    background: #f9f9f9;
    font-weight: normal;
}

/* 课程信息样式 */
.selectable-course {
    cursor: pointer;
}

.course-title {
    margin-bottom: 5px;
}

/* 选中状态 */
.selectable-course.selected {
    background: #f0f0f0;
}

/* 空课程样式 */
.course-empty {
    color: #999;
}

/* 时间分隔行 */
.time-separator {
    background: #f9f9f9;
}

/* 操作按钮容器 */
.dialog-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 确认按钮样式 */
.confirm-btn {
    background: #20b2aa !important;
    border-radius: 20px !important;
    padding: 0 30px !important;
    height: 38px !important;
    line-height: 38px !important;
    transition: all 0.3s ease !important;
}

.confirm-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .course-selection-dialog {
        padding: 10px !important;
    }
    
    .selectable-course {
        min-height: 60px;
        padding: 8px;
    }
    
    .course-title {
        font-size: 13px;
    }
    
    .course-coach {
        font-size: 11px;
    }
}

/* 课程表样式 */
.course-table-container {
    padding: 20px;
    background: #f8f8f8;
}

/* 添加右键菜单样式 */
.layui-layer-rightmenu {
    border: 1px solid #ddd;
    background: #fff;
}

.right-menu {
    padding: 5px 0;
}

.menu-item {
    padding: 8px 15px;
    cursor: pointer;
}

.menu-item:hover {
    background: #f5f5f5;
}
/*续费*/
/* 续费页面整体布局 */
.renewal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* 页面标题 */
.renewal-page h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* 图片展示区 */
.image-section {
    margin-bottom: 20px;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 套餐详情区 */
.package-details {
    margin-bottom: 20px;
}

.package-details h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.package-details p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 续费按钮区 */
.renewal-button {
    text-align: center;
}

.renewal-button button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #20b2aa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.renewal-button button:hover {
    background-color: #1a9690;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .renewal-page {
        padding: 10px;
    }

    .renewal-page h1 {
        font-size: 24px;
    }

    .package-details h2 {
        font-size: 20px;
    }

    .package-details p {
        font-size: 14px;
    }

    .renewal-button button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 课程详情弹窗样式 */
.course-detail-popup {
    padding: 20px;
    text-align: center;
}

.coach-info {
    margin-bottom: 30px;
}

.coach-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.coach-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.coach-title {
    color: #666;
    font-size: 14px;
}

.course-info {
    text-align: left;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .layui-icon {
    color: #20b2aa;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 可选课程样式优化 */
.selectable-course {
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selectable-course:hover {
    background: #f0f9f9;
    transform: scale(1.02);
}

/* 续费页面样式优化 */
.renewal-page {
    padding: 30px;
    background-color: #fff;
}

.renewal-options {
    margin: 20px 0;
    text-align: center;
}

.renewal-options h3 {
    margin-bottom: 15px;
    color: #333;
}

.option-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.duration-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-btn.active {
    border-color: #20b2aa;
    background: #f0f9f9;
    color: #20b2aa;
}

.payment-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.payment-methods label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.payment-methods img {
    height: 40px;
    object-fit: contain;
}

.total-amount {
    text-align: center;
    font-size: 18px;
}

.total-amount .amount {
    color: #ff5722;
    font-weight: bold;
    font-size: 24px;
}

.renewal-button button {
    background: #20b2aa;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.renewal-button button:hover {
    background: #1a9690;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

/* 更新顶部信息栏样式 */
.top-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 添加消费信息样式 */
.expense-info {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.expense-info .layui-icon {
    color: #FF5722;
    font-size: 16px;
    margin-right: 5px;
}

.expense-info .amount {
    color: #FF5722;
    font-size: 18px;
    font-weight: bold;
}

/* 更新个人信息卡片样式 */
.profile-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.basic-info {
    flex: 1;
    padding: 5px 0;
}